package com.ibilibili.utils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class Tools {
    public static String substring(String str) {
        String res = "";
        String regex = "select (.*) from";
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(str);
        while (matcher.find()) {
            res += matcher.group(1);
        }

        return res.trim();
    }
}
